#pragma once
#include "MidiParser/jdksmidi/world.h"
#include "MidiParser/jdksmidi/track.h"
#include "MidiParser/jdksmidi/multitrack.h"
#include "MidiParser/jdksmidi/filereadmultitrack.h"
#include "MidiParser/jdksmidi/fileread.h"
#include "MidiParser/jdksmidi/fileshow.h"
#include "MidiParser/jdksmidi/sequencer.h"
#include "MidiParser/jdksmidi/manager.h"
#include "MidiParser/jdksmidi/driverdump.h"
#include "MidiParser/jdksmidi/manager.h"
#include "jdksmidi/manager.h"
using namespace jdksmidi;

class MidiParser
{
public:
	MidiParser(char * midi_path);
	~MidiParser(void);
	void Run(int msec);
	void DumpTrackNames ( MIDISequencer *seq );
	void PlayDumpManager ( MIDIManager *mgr );

	MIDIManager* mgr;
	MIDIFileReadStreamFile* rs;
	MIDIMultiTrack* tracks;
	MIDIFileReadMultiTrack *track_loader;
	MIDIFileRead *reader;
	MIDISequencerGUIEventNotifierText *gui;
	MIDISequencer * seq;
	MIDIDriverDump *driver;


	
};

extern int output_note;
extern int pre_note;